package test.abc.spring.app2.assembly;

import java.util.List;
import java.util.Map;

/**
 * 类GreetingServiceImpl.java的实现描述：TODO 类实现描述
 * 
 * @author husong 2012-10-19 上午10:57:28
 */
public class GameServiceImpl implements GameService {

    private String            game;
    private GameCard          gameCard;

    private List<Game>        games;

    private Map<String, Game> gameMap;

    /**
     * 
     */
    public GameServiceImpl(){
        // TODO Auto-generated constructor stub
    }

    /**
     * @param greetinString the greetinString to set
     */
    public GameServiceImpl(String game, GameCard gameCard, List<Game> games, Map<String, Game> gameMap){
        this.game = game;
        this.gameCard = gameCard;
        this.games = games;
        this.gameMap = gameMap;
    }

    /*
     * (non-Javadoc)
     * @see com.abc.test.app1.hello.GreetingService#sayGreeting()
     */
    @Override
    public void play() {
        System.out.println("use " + this.gameCard + " to play " + this.game + "form" + this.games + "map"
                           + this.gameMap);

    }

    /**
     * @param greetingString the greetingString to set
     */
    public void setGame(String game) {
        this.game = game;
    }

    /**
     * @param gameCard the gameCard to set
     */
    public void setGameCard(GameCard gameCard) {
        this.gameCard = gameCard;
    }

    /**
     * @return the games
     */
    public List<Game> getGames() {
        return games;
    }

    /**
     * @param games the games to set
     */
    public void setGames(List<Game> games) {
        this.games = games;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "GameServiceImpl [game=" + game + ", gameCard=" + gameCard + ", games=" + games + ", gameMap=" + gameMap
               + "]";
    }

    /**
     * @return the gameMap
     */
    public Map<String, Game> getGameMap() {
        return gameMap;
    }

    /**
     * @param gameMap the gameMap to set
     */
    public void setGameMap(Map<String, Game> gameMap) {
        this.gameMap = gameMap;
    }

}
